/**
 * @file user_events.h
 * @brief
 *
 * @author Mr.Lin (Email：61900302@qq.com)
 * @version 1.0
 * @date 2023-09-15
 *
 * @copyright Copyright (c) 2023 kangTuo Tech.co, Ltd
 *
 * @par 修改日志:
 * Date           Version     Author      Description
 * 2023-09-15     1.0         Mr.Lin      Init
 */
#ifndef _USER_EVENTS_H_
#define _USER_EVENTS_H_

#include "stdbool.h"
#include "lvgl.h"

typedef enum {
    LV_SWITCH_STARTUP = 0,
    LV_BTN_MASTER_GEAR,
    LV_BTN_SLAVE_GEAR,
    LV_EVENT_MAX
} lv_event_nb;

void keyfifo_putin(uint8_t KeyCode);
uint8_t keyfifo_readout(uint8_t *KeyCode);
void lv_user_events_create(void);

uint8_t lv_btn_get_master_gear_state(uint8_t *master_gear);
uint8_t lv_btn_get_slave_gear_state(void);

#endif // USER_EVENTS_H_

